//
//  LogMacro.h
//  ZYTS-iPhone
//
//  Created by fred on 1/7/13.
//  Copyright (c) 2013 wzyk. All rights reserved.
//

#ifndef ZYTS_iPhone_LogMacro_h
#define ZYTS_iPhone_LogMacro_h


#define FLOG(str, args...) NSLog\
(@"\n[文件:%s] [行号:%d] [类:%@] [方法:%s]\n%@", strrchr(__FILE__, '/'), __LINE__, [self class], sel_getName(_cmd),\
[NSString stringWithFormat:str , ##args ])


#define FASSERT(condition, str, args...) NSAssert\
(condition, @"--------------------------------------------------------------------------------\
\n[文件:%s] [行号:%d] [类:%@] [方法:%s]\n%@", strrchr(__FILE__, '/'), __LINE__, [self class], sel_getName(_cmd),\
[NSString stringWithFormat:str , ##args ])


#define FALERT(Ftitle, Fmessage) [[[[UIAlertView alloc] initWithTitle:Ftitle message:Fmessage delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil] autorelease] show];

#endif
